﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Common
{
    public class SubscribeAttribute : Attribute
    {
        public Type EventType { get; internal set; }

        /// <summary>
        /// 订阅事件
        /// </summary>
        /// <param name="eventType">订阅的事件类型</param>
        public SubscribeAttribute(Type eventType)
        {
            EventType = eventType;
        }

        /// <summary>
        /// 订阅事件，默认以第一个参数类型为订阅的事件类型
        /// </summary>
        public SubscribeAttribute()
        {
        }
    }
}
